# 字典 无序的键值对（key:value）集合
data = {'kushal': 'Fedora', 'kart_': 'Debian', 'Jace': 'Mac'}
print(data)

print(data['kart_'])

data['parthan'] = 'Ubuntu'

print(data)
print('-' * 50)

for x, y in data.items():  # 遍历一个字典
    print("{} system is {}".format(x, y))
print('-' * 50)

for index, value in enumerate(['a', 'b', 'c']):     # 在遍历列表（或任何序列类型）的同时获得元素索引值
    print("index:{} is {}".format(index, value))

print('-' * 50)

a = ['Pradeepto', 'Kushal']
b = ['OpenSUSE', 'Fedora']
for x, y in zip(a, b):      # 同时遍历两个序列类型
    print("{} uses {}".format(x, y))
